<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      >
    <h:head>

    </h:head>

    <h:body>
        <table align="center" heght="100%"> 
            <td width="33%"></td>
            <td width="33%" align="center" valign="middle" >

                <p></p>
                <br/>
                <br/>
                <br/> 
                <c:choose>
                    <c:when test="${error eq 1}">
                        <h:outputLabel value="не правильно введён логин или пароль "/>
                    </c:when>
                </c:choose>
                <p:panel  header="Введите логин и пароль" >
                    <form id="f" name='f' action='j_spring_security_check' method='post'>
                        <table>
                            <tr><td>User:</td><td><input type='text' name='j_username' /></td></tr>
                            <tr><td>Password:</td><td><input type='password' name='j_password' /></td></tr>
                            <tr><td colspan='1'><input name="submit" type="submit"/></td></tr>
                        </table>
                    </form>
                </p:panel>
            </td>
            <td width="33%"></td>
        </table>
    </h:body>

</html>